package DBLag;

import ModelLag.Shift;
import java.util.ArrayList;
import java.util.GregorianCalendar;

/**
 * Interfaceklasse for DbShift.
 * @author DM75 Gruppe 3
 * @version 2011-12-22
 */
public interface IFDbShift {
    
    public Shift findShift(String cprNo, String startTime, String endTime, GregorianCalendar date, String location, boolean retriveAssociation);
    
    public ArrayList<Shift> getShiftsWithThisDateLocation(GregorianCalendar date, String location, boolean retriveAssociation);
    
    public ArrayList<Shift> getAllShifts();
    
    public int insertShift(Shift shiftObj, GregorianCalendar date, String location);
    
    public int deleteShift(String cprNo, String startTime, String endTime, GregorianCalendar date, String location);
    
    public int updateShift(Shift shiftObj, GregorianCalendar date, String location, String newCprNo, String newStartTime, String newEndtime, Double newHours);
    
}
